;
(function() {
    require.config({
        paths: {
            "core": "./js/pages/_core"
        }
    });
    var _isDev = location.host.indexOf("dev.dotnar.com") === 0;
    var scriptTags = document.getElementsByTagName("script");
    var currentScript = scriptTags[scriptTags.length - 1];
    var configScript = document.createElement("script");
    configScript.type = "text/javascript";
    window.lib_url = (_isDev ? "http://dev.dotnar.com:2221" : "http://lib.dotnar.com");
    configScript.src = lib_url + "/js/require.config.js";
    currentScript.parentNode.insertBefore(configScript, currentScript.nextSibling);
    //封装require、define函数，延迟运行
    window.requireJsStack = [];
    window._require = window.require;
    window.require = function() {
        requireJsStack.push({
            type: "require",
            args: arguments
        });
    };
    window._define = window.define;
    window.define = function() {
        requireJsStack.push({
            type: "define",
            args: arguments
        });
    };
}());